﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Webapi.EFCore.IService.Base;
using Webapi.EFCore.Model;
using Webapi.EFCore.Model.Enity;
using Webapi.EFCore.Model.ViewModel;

namespace Webapi.EFCore.IService
{
    /// <summary>
    /// User服务接口 
    /// </summary>
    [Service]
    public interface IUserService : IBaseService<User>
    {
        /// <summary>
        /// 获取用户数量
        /// </summary>
        /// <returns></returns>
        Task<int> GetCount();

        /// <summary>
        /// 写入实体
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<MessageModel<CurdModel>> AddRoleBat(UserRoleModel model);

        /// <summary>
        /// 获取用户详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<UserViewModel> GetUserDetails(int id);

    }
}
